package com.fc.mall.portal.service;

import com.fc.mall.base.object.Result;
import com.fc.mall.portal.domain.ConfirmOrderResult;
import com.fc.mall.portal.domain.ImmediatelyGroupOrderParam;
import com.fc.mall.portal.dto.OmsGroupCartItem;
import com.fc.mall.portal.dto.OmsOrderGroupBuyDto;
import com.fc.mall.portal.dto.OrderGroupParam;

import java.util.List;


/**
 * Created by sunny on 2019/8/19.
 */
public interface OmsOrderGroupService {

    ConfirmOrderResult generateConfirmGroupOrder(OmsGroupCartItem omsCartItem);

    Result generateGroupOrder(ImmediatelyGroupOrderParam immediatelyOrderParam);

    OmsOrderGroupBuyDto getOwnerGroupOrder(Long groupId, Long orderGroupId);

    boolean handleOrderGroupPaySuccess(Long orderId);

    void cancelGroupOrder(String expiredKey);

    List<OmsOrderGroupBuyDto> getOrderGroupList( OrderGroupParam orderGroupParam);
}
